package org.dromara.business.modules.favorites.domain.vo;

import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.business.modules.demands.domain.vo.BuDemandsVo;
import org.dromara.business.modules.favorites.domain.BuFavorites;
import org.dromara.business.modules.services.domain.vo.BuServicesVo;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * 用户收藏视图对象 bu_favorites
 *
 * @author ckk
 * @date 2025-11-12
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = BuFavorites.class)
public class BuFavoritesVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @ExcelProperty(value = "主键ID")
    private Long id;

    /**
     * 被收藏对象ID
     */
    @ExcelProperty(value = "被收藏对象ID")
    private Long targetId;

    /**
     * 被收藏对象标题
     */
    @ExcelProperty(value = "被收藏对象标题")
    private String targetTitle;

    /**
     * 被收藏对象类型，1-服务，2-需求
     */
    @ExcelProperty(value = "被收藏对象类型，1-服务，2-需求")
    private Integer targetType;

    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date createTime;

    /**
     * 服务
     */
    private BuServicesVo services;

    /**
     * 需求
     */
    private BuDemandsVo demands;


}
